package com.googlecode.ipage.persistent.entity;

import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Id;

/**
 * 
 * @author Johny Huang
 * @date 2008-12-16
 * @version 1.0
 *
 */
public class Resource {
	@Id
    private long id = System.currentTimeMillis();

    @Basic
    private String location;

    @Basic
    private Date createdDate = new Date();
    
    @Basic
    private Date lastUpdatedDate =new Date();

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public Date getCreatedDate() {
		return createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public Date getLastUpdatedDate() {
		return lastUpdatedDate;
	}

	public void setLastUpdatedDate(Date lastUpdatedDate) {
		this.lastUpdatedDate = lastUpdatedDate;
	}

	

}
